package uos.gcds.order;

import uos.gcds.GCDSController;
import uos.gcds.menu.Menu;

public class OrderLineItem {

	private Menu menu;
	private int qty;
	
	public OrderLineItem(Menu menu, int qty) {
		this.setMenu(menu);
		this.setQty(qty);
	}

	public void setMenu(Menu menu){
		this.menu = menu;
	}
	
	public Menu getMenu(){
		return this.menu;
	}
	
	public void setQty(int qty){
		this.qty = qty;
	}
	
	public int getQty(){
		return this.qty;
	}
	
	public int getSubTotal(){
		return this.getMenu().getPrice() * this.getQty();
	}
	
}
